package com.xcm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xcm.dao.ProgramInfoMapper;
import com.xcm.model.TbProgramInfo;
import com.xcm.service.ProgramInfoService;

/**
 * 节目信息Service实现类
 */
@Service(value = "programInfoService")
public class ProgramInfoServiceImpl implements ProgramInfoService {
	@Autowired
	private ProgramInfoMapper programInfoMapper;

	/**
	 * 通过机器码和播放版本号获取最新的节目信息
	 * @param machineNum    机器码
	 * @param xcVersion   播放版本号
	 * @return  TbProgramInfo
	 */
	@Override
	public TbProgramInfo getProgramInfoByMachineNum(String machineNum,String xcVersion) {
		return programInfoMapper.getProgramInfoByMachineNum(machineNum,xcVersion);
	}
}
